package com.nsi.o2o.service;

import com.nsi.o2o.dto.ImageHolder;
import com.nsi.o2o.dto.ShopExecution;
import com.nsi.o2o.entity.Shop;

import java.io.InputStream;

/**
 * @author: Luo Zhen
 * @date: 2018/9/7 10:35
 * @description:
 */
public interface ShopService {

    /**
     * 注册店铺信息，包括图片处理
     *
     * @param shop
     * @return
     */
    ShopExecution addShop(Shop shop, ImageHolder thumbnail);

    /**
     * 更新店铺信息，包括图片处理
     *
     * @param shop
     * @return
     */
    ShopExecution modifyShop(Shop shop, ImageHolder thumbnail);

    /**
     * 根据Id 返回店铺信息
     *
     * @param shopId
     * @return
     */
    Shop getByShopId(long shopId);

    /**
     * 跟句ShopCondition ———— 分页
     *
     * @param shopCondition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    ShopExecution getShopList(Shop shopCondition, int pageIndex, int pageSize);

}
